home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 December / PC Answers December 1995 (disc errors).iso / mxc / eqboot.dir / 00005_Script_MS for EQBOOT < prev    next >
Text File  |  1995-04-23  |  2KB  |  77 lines

  1. global fixPal, myLine, csn, lem, palName, bd, tpal, myLine2, gDIrMovie, gBackColor, gForeColor
  2.  
  3. on startMovie  
  4.   if the machineType < 256 then
  5.     openXlib "XPALETTE"
  6.     set fixPal = fixPalette(mNew,the stageleft,the stagetop,the stageright,the stagebottom)
  7.   else
  8.     openXlib "XPALETTE.dll"
  9.     set fixPal = xPalette(mNew)
  10.   end if
  11.   -- THIS COLORDEPTH CODE WILL CHANGE ACCORDING TO THE INTERFACE PAL COLORS
  12.   if the colorDepth = 8 then
  13.     set gBackColor = 31  -- dark aqua
  14.     set gForeColor = 255   -- black
  15.   end if
  16.   if the colorDepth = 16 then
  17.     if the machineType > 256 then
  18.       set gBackColor = 729
  19.       set gForeColor = 0
  20.     else
  21.       set gBackColor = 31
  22.       set gForeColor = 255
  23.     end if
  24.   end if
  25.   if the colorDepth = 32 then
  26.     set gBackColor = 46542
  27.     set gForeColor = 0
  28.   end if
  29.   set auto = 0
  30.   set ok = 3
  31.   set myLine = 1
  32.   set myLine2 = 1
  33.   put 201 into tpal
  34.   set csn = the number of lines in field "asset list"
  35.   cursor 0
  36.   colorMe
  37.   txtHandler
  38. end
  39.  
  40. on txtHandler
  41.   global myLine
  42.   
  43.   put the text of cast (myLine + 50) into field "Desc"
  44.   set the castNum of sprite 10 to (myLine + 100)
  45.   updateStage  
  46. end
  47.  
  48. on colorMe
  49.   set the forecolor of field "asset list" to gForeColor
  50.   if myLine = -1 then 
  51.     set the forecolor of field "asset list" to gForeColor
  52.     exit
  53.   end if
  54.   set the forecolor of line myLine of field "asset list" to gBackColor
  55. end
  56.  
  57. on patchPal
  58.   fixPal(mPatchIt)
  59. end
  60.  
  61. on stopMovie
  62.   fixPal(mDispose)
  63.   if the machineType < 256 then closeXlib "XPALETTE"
  64.   else closeXlib "XPALETTE.dll"
  65. end
  66.  
  67. -- NOT PRESENTLY BEING USED
  68. on flushMe
  69.   if the machineType = 256 then
  70.     OpenXlib "GLOBMEM"
  71.     Set OBJ = GLOBMEM(mNew)
  72.     OBJ(mFreeHandles, 8192)
  73.     OBJ(mFreeHandles, 8192)
  74.     OBJ(mFreeHandles, 8192)
  75.     OBJ(mDispose)
  76.   end if
  77. end